//
//  XXFont.swift
//  XXSwiftDemo
//
//  Created by admin on 2022/3/28.
//

import UIKit

public extension UIFont {
    
    class func system(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size)
    }
    class func bold(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size, weight: .bold)
    }
    class func medium(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size, weight: .medium)
    }
    class func regular(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size, weight: .regular)
    }
    class func heavy(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size, weight: .heavy)
    }
    class func light(_ size:CGFloat = 15) -> UIFont {
        return UIFont.systemFont(ofSize: size, weight: .light)
    }
}
